package lib.wzh.com.libcore.framework.chain;

import lib.wzh.com.libcore.framework.response.BaseResponse;

/**
 * @Author lib
 * @Date 2021/12/4 14:28
 * @ClassName ReturnBuilder
 * @Version v1.0
 */

public class ReturnBuilder {

    public static <T> BaseResponse<T> execute(T data){
        ReturnChain.Builder builder = new ReturnChain.Builder();
        builder.addBuilder(new ReturnBoolean())
                .addBuilder(new ReturnString())
                .addBuilder(new ReturnEmpty());
        return builder.builder().returnHandler(data);
    }

}
